namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;


    [System.SerializableAttribute()]
    [Map("PROMOTIONS")]
    public class PROMOTIONS : ObjectRow
    {

        public PROMOTIONS()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public PROMOTIONS(System.Data.DataRow dataRow, ObjectTable parent) :
            base(dataRow, parent)
        {
        }

        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PROMOTIONS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
            base(info, context)
        {
        }

        [Key("ID", true, true)]
        public int ID
        {
            get
            {
                return (System.Int32)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }

        [Field("CODE")]
        public string CODE
        {
            get
            {
                return (System.String)GetValue("CODE");
            }
            set
            {
                SetValue("CODE", value);
            }
        }

        [Field("NAME")]
        public string NAME
        {
            get
            {
                return (System.String)GetValue("NAME");
            }
            set
            {
                SetValue("NAME", value);
            }
        }

        [Field("START_DATE")]
        public decimal STARTDATE
        {
            get
            {
                return (System.Decimal)GetValue("STARTDATE");
            }
            set
            {
                SetValue("STARTDATE", value);
            }
        }

        [Field("END_DATE")]
        public decimal ENDDATE
        {
            get
            {
                return (System.Decimal)GetValue("ENDDATE");
            }
            set
            {
                SetValue("ENDDATE", value);
            }
        }

        [Field("DESCRIPTION")]
        public string DESCRIPTION
        {
            get
            {
                return (System.String)GetValue("DESCRIPTION");
            }
            set
            {
                SetValue("DESCRIPTION", value);
            }
        }

        [Field("ACTIVE")]
        public bool ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DOMAINID
        {
            get
            {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set
            {
                SetValue("DOMAINID", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LASTUPDATER
        {
            get
            {
                return (System.String)GetValue("LASTUPDATER");
            }
            set
            {
                SetValue("LASTUPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LASTUPDATETIME
        {
            get
            {
                return (System.Decimal)GetValue("LASTUPDATETIME");
            }
            set
            {
                SetValue("LASTUPDATETIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public decimal CREATETIME
        {
            get
            {
                return (System.Decimal)GetValue("CREATETIME");
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }
    }
}
